package ch08.shili.shili16;

/**
 * @author 茜茜
 * @date 2024-11-26 21:36
 */

import ch08.shili.shili12.FruitName;
import ch08.shili.shili13.FruitColor;
import ch08.shili.shili14.FruitProvider;

/**
 * 注解使用
 */
public class Apple {
    @FruitName(value = "Apple")
    private String appleName;

    @FruitColor(fruitColor=FruitColor.Color.RED)
    private  String appleColor;

    @FruitProvider(id=1,name = "陕西红富士集团",address = "陕西省大富贵花")
    private String appleProvider;


    public String getAppleName() {
        return appleName;
    }

    public void setAppleName(String appleName) {
        this.appleName = appleName;
    }

    public String getAppleColor() {
        return appleColor;
    }

    public void setAppleColor(String appleColor) {
        this.appleColor = appleColor;
    }

    public String getAppleProvider() {
        return appleProvider;
    }

    public void setAppleProvider(String appleProvider) {
        this.appleProvider = appleProvider;
    }
}
